package com.xiaomage.aidlserver;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;

public class AidlService extends Service {
    private String TAG="AIDL--AidlService";
    private class MyBinder extends IAidlService.Stub {

        @Override
        public String getValue() throws RemoteException {
            return "test remote service";
        }
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Log.i(TAG,"AidlService--onCreate");
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO Auto-generated method stub
        Log.i(TAG,"AidlService--onBind");
        return new MyBinder();
    }

    @Override
    public void onDestroy() {
        Log.i(TAG,"AidlService--onDestroy");
        super.onDestroy();
    }


}
